package com.example.cloud.service.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wjwjtftf Created on 2017/9/25.
 */
@RestController
@RefreshScope
public class ValueReadController {

	@Value("${config.app.name}")
	private String appName;

	@RequestMapping("/app-name")
	public String getAppName() {
		return appName;
	}
}
